#ifndef DISPLAY_H
#define DISPLAY_H

//#define COLOR_GREEN			0x001F
//#define COLOR_RED				0x07E0
//#define COLOR_BLUE			0xF800
//#define COLOR_YELLOW		(COLOR_GREEN | COLOR_RED)
//#define COLOR_MEGENTA		(COLOR_RED | COLOR_BLUE)
//#define COLOR_CYAN			(COLOR_GREEN | COLOR_BLUE)
//#define COLOR_WHITE			0xFFFF
//#define COLOR_BLACK			0x0000
//#define COLOR_DEFAULT		COLOR_BLACK	//pure black


#define COLOR_GREEN			~0x001F
#define COLOR_RED				~0x07E0
#define COLOR_BLUE			~0xF800
#define COLOR_YELLOW		~(COLOR_GREEN | COLOR_RED)
#define COLOR_MEGENTA		~(COLOR_RED | COLOR_BLUE)
#define COLOR_CYAN			~(COLOR_GREEN | COLOR_BLUE)
#define COLOR_WHITE			~0xFFFF
#define COLOR_BLACK			~0x0000
#define COLOR_DEFAULT		COLOR_BLACK	//pure black


#define IMAGE_D1																				0
#define IMAGE_D2																				1
#define IMAGE_D3																				2
#define IMAGE_D4																				3
#define IMAGE_D5																				4
#define IMAGE_D6																				5
#define IMAGE_D7																				6
#define IMAGE_D8																				7
#define IMAGE_LOGO																			8
#define IMAGE_SR_WHITE																	9
#define IMAGE_SR_GREY																		10
#define IMAGE_HR_WHITE																	11
#define IMAGE_HR_GREY																		12
#define IMAGE_AUTO																			13
#define IMAGE_MANUAL																		14
#define IMAGE_ICE																				15
#define IMAGE_HOT																				16
#define IMAGE_BATTERY_0																	17
#define IMAGE_BATTERY_WHITE_1														18
#define IMAGE_BATTERY_WHITE_2														19
#define IMAGE_BATTERY_WHITE_3														20
#define IMAGE_BATTERY_WHITE_4														21
#define IMAGE_BATTERY_WHITE_5														22
#define IMAGE_BATTERY_YELLOW_1													23
#define IMAGE_BATTERY_YELLOW_2													24
#define IMAGE_BATTERY_YELLOW_3													25
#define IMAGE_BATTERY_YELLOW_4													26
#define IMAGE_BATTERY_YELLOW_5													27
#define IMAGE_BATTERY_RED_1															28
#define IMAGE_BATTERY_RED_2															29
#define IMAGE_BATTERY_RED_3															30
#define IMAGE_BATTERY_RED_4															31
#define IMAGE_BATTERY_RED_5															32
#define IMAGE_MODE0_TURBO0															33
#define IMAGE_MODE0_TURBO1															34
#define IMAGE_MODE0_TURBO2															35
#define IMAGE_MODE1_TURBO0															36
#define IMAGE_MODE1_TURBO1															37
#define IMAGE_MODE1_TURBO2															38
#define IMAGE_BALL_YELLOW																39
#define IMAGE_BALL_GREEN																40
#define IMAGE_BALL_BLUE																	41
#define IMAGE_BALL_MAGENTA															42
#define IMAGE_BALL_RED																	43
#define IMAGE_CLOSING																		44
#define IMAGE_LOCK																			45


void display_init();
void display_on();
void display_off();
void display_clear(unsigned int color);
void display_show(unsigned char id);
void display_hide(unsigned char id);
void display_animation_show(unsigned char ball_step, unsigned char digit_step);
void display_animation_hide();




#endif 